raar.language
Interface RAAbstractList

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
RAList, RAListPointer

public interface RAAbstractList
extends java.io.Serializable


Method Summary
 void add(RAAllowedInList newValue)
          Adds an element to the list.
 void clear()
          Clears the list.
 boolean hasMoreElements()
          Tests if this list's nextElement method can be called again.
 RAAllowedInList nextElement()
          Returns the next element in this list or null if it doesn't exist.
 void resetIteration()
          This method resets the list's iterator, which means nextElement will start at the beginning of the list again.
 void set(RAAllowedInList newValue)
          Sets the last element returned by nextElement.
 RANonElemDataType typeOfList()
           
 

Method Detail

typeOfList

RANonElemDataType typeOfList()
                             throws RAException
Throws:
RAException

add

void add(RAAllowedInList newValue)
         throws RAException
Adds an element to the list.

Parameters:
newValue - The value to add.
Throws:
RAException

set

void set(RAAllowedInList newValue)
         throws RAException
Sets the last element returned by nextElement.

Parameters:
newValue - The new value of this element
Throws:
RAException

clear

void clear()
           throws RAException
Clears the list.

Throws:
RAException

nextElement

RAAllowedInList nextElement()
                            throws RAException
Returns the next element in this list or null if it doesn't exist.

Returns:
The next element in this list.
Throws:
RAException

hasMoreElements

boolean hasMoreElements()
                        throws RAException
Tests if this list's nextElement method can be called again.

Returns:
True if nextElement() can be called, false otherwise.
Throws:
RAException

resetIteration

void resetIteration()
                    throws RAException
This method resets the list's iterator, which means nextElement will start at the beginning of the list again.

Throws:
RAException